import request from './request';

const user = {
    // 登录
    login(data) {
        return request.post('/api/users/login', data);
    },

    // 注册
    register(data) {
        return request.post('/api/users/register', data);
    },

    // 获取用户信息
    getUserInfo() {
        return request.get('/api/users/info');
    },
};

export default user;